package ddd;

import ddd.constant.WeaponEnum;

/**
 * @author dengzhiyuan
 * @version 1.0
 * @time 2021/5/24 18:20
 */
public class WeaponFactory {

    public static Weapon createWeaponFromPrototype(WeaponEnum weaponEnum, String newName) {
        Weapon weapon = new Weapon(newName, weaponEnum, 1,200);
        return weapon;
    }

}
